package interview9;

import org.junit.Test;

/**
 * @author Jack
 * @date 2019-11-06-14:56
 */
public class SolutionTest2 {

    @Test
    public void testSolution2() throws Exception{
        Solution2 solution2 = new Solution2();
        solution2.appendTail("A");
        solution2.appendTail("B");
        solution2.appendTail("C");
        solution2.appendTail("D");
        solution2.appendTail("E");
        solution2.appendTail("F");
        Object obj = solution2.deleteHead();
        Object obj2 = solution2.deleteHead();
        Object obj3 = solution2.deleteHead();
        Object obj4 = solution2.deleteHead();
        solution2.appendTail("G");
        Object obj5 = solution2.deleteHead();
        Object obj6 = solution2.deleteHead();
        Object obj7 = solution2.deleteHead();
        System.out.println(obj);
        System.out.println(obj2);
        System.out.println(obj3);
        System.out.println(obj4);
        System.out.println(obj5);
        System.out.println(obj6);
        System.out.println(obj7);
    }
    @Test
    public void testNullInput() throws Exception {
        Solution2 solution2 = new Solution2();
        solution2.deleteHead();
    }
    @Test
    public void testOneInput() throws Exception{
        Solution2 solution2 = new Solution2();
        solution2.appendTail("A");
        Object obj = solution2.deleteHead();
        System.out.println(obj);
    }


}
